<!DOCTYPE html>
<style>
#container {
    width: 300px;
    height: 300px;
    border: solid 1px red;
    text-align: end;
    word-spacing: 10px;
}
</style>
<div id="container">
    <span>AAAAA</span>
    <span style="display:inline-block">BBBBB</span>
    <span>CCCCC</span>
</div>
This test passes if the texts are aligned right, without overflowing.
